package com.consul;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author zhangbowen
 * @date 2019/4/8
 **/
@RestControllerAdvice
public class GlobalException {

    @ExceptionHandler
    public String exceptionHandler(Exception e){
        return "异常";
    }
}
